package com.woniu.controller.backpage;

import com.woniu.entity.Distribution;
import com.woniu.service.backpage.IDistributionService;
import com.woniu.util.RequestParams;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 凌雨
 * @data 2023/3/14 16:46
 */
@RestController
@RequestMapping("/distribution")
public class DistributionController {

    @Autowired
    private IDistributionService distributionService;

    @RequestMapping("/queryDistribution")
    public ResData<?> queryDistribution(@RequestBody RequestParams<Distribution> requestParams){
        return distributionService.queryDistribution(requestParams);
    }
}
